<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {

        return $this->view->fetch();
    }
    

      //新闻详情
	public function news_details(){
	    halt("eee");
	    $id = $this->request->param('id');
	    $news = db::name('news')
	    ->find($id);

	    
	    //$news['content']=str_replace("/uploads/images/", "http://adm.shigood.com/uploads/images/", $news['content']);
	    $this->assign('article',$news);
	    return $this->fetch(); // 渲染模板
	}

}
